package com.kuang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.util.Date;

/***
 * @author 飞哥yykk
 * 更多学习关注飞哥B站
 * 地址是：https://space.bilibili.com/490711252
 * @description: 门票模块
 * @date 2021/8/30 21:08
 * @return
 * @throws
 */
@TableName("kss_ticket")
public class Ticket implements java.io.Serializable {

    // 主键
    @TableId(type = IdType.ID_WORKER)
    private Long id;
    private String title;
    private String price;
    private BigDecimal realprice;
    // 1 :门票 2 露营票
    private Integer cid;
    private Integer salecount;
    private String tags1;
    private String tags2;
    private String tags3;
    private String tags4;
    private String tags5;
    private String tags6;
    private String tags7;
    private String tags8;
    private Date createTime;
    private Date updateTime;
    private Integer status;
    private Long productId;
    private Long userId;
    private String username;
    private String avatar;

    public Ticket(){

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public BigDecimal getRealprice() {
        return realprice;
    }

    public void setRealprice(BigDecimal realprice) {
        this.realprice = realprice;
    }

    public Integer getSalecount() {
        return salecount;
    }

    public void setSalecount(Integer salecount) {
        this.salecount = salecount;
    }

    public String getTags1() {
        return tags1;
    }

    public void setTags1(String tags1) {
        this.tags1 = tags1;
    }

    public String getTags2() {
        return tags2;
    }

    public void setTags2(String tags2) {
        this.tags2 = tags2;
    }

    public String getTags3() {
        return tags3;
    }

    public void setTags3(String tags3) {
        this.tags3 = tags3;
    }

    public String getTags4() {
        return tags4;
    }

    public void setTags4(String tags4) {
        this.tags4 = tags4;
    }

    public String getTags5() {
        return tags5;
    }

    public void setTags5(String tags5) {
        this.tags5 = tags5;
    }

    public String getTags6() {
        return tags6;
    }

    public void setTags6(String tags6) {
        this.tags6 = tags6;
    }

    public String getTags7() {
        return tags7;
    }

    public void setTags7(String tags7) {
        this.tags7 = tags7;
    }

    public String getTags8() {
        return tags8;
    }

    public void setTags8(String tags8) {
        this.tags8 = tags8;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", price='" + price + '\'' +
                ", realprice=" + realprice +
                ", salecount=" + salecount +
                ", cid=" + cid +
                ", tags1='" + tags1 + '\'' +
                ", tags2='" + tags2 + '\'' +
                ", tags3='" + tags3 + '\'' +
                ", tags4='" + tags4 + '\'' +
                ", tags5='" + tags5 + '\'' +
                ", tags6='" + tags6 + '\'' +
                ", tags7='" + tags7 + '\'' +
                ", tags8='" + tags8 + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                ", productId=" + productId +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", avatar='" + avatar + '\'' +
                '}';
    }
}
